package main

import (
	"github.com/gin-gonic/gin"
	"management/handler/login"
	"management/handler/user"
)

func main() {
	r := gin.Default()
	r.GET("/ping", func(c *gin.Context) {
		c.JSON(200, gin.H{
			"message": "pong",
		})
	})
	login.InitLogin(r)
	user.InitUser(r)
	r.Run("0.0.0.0:8008") // 监听并在 0.0.0.0:8080 上启动服务
}
